//
//  BannerViewController.m
//  TestDemo
//
//  Created by a on 2023/2/8.
//

#import "BannerViewController.h"
#import "BannerAdM.h"

@interface BannerViewController ()

@property (weak, nonatomic) IBOutlet UIView *adView;

@property (nonatomic,strong)BannerAdM * adM;

@end

@implementation BannerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.adM = [[BannerAdM alloc]init];
    self.adM.viewController = self;
    [self.adM setupAd];
}

- (IBAction)showBannerClicked:(id)sender {
    [self.adM loadAdShowInView:self.adView];
}

@end
